package com.qf.pojo;

import org.springframework.util.StringUtils;

import java.security.Timestamp;
import java.util.Date;

public class Users implements CheckNull {

  private long userid;
  private String username;
  private String password;
  private String passwordsalt;//密码的盐值
  private Date registrydate;//注册时间
  private Date lastlogindate;//上次登录时间
  private Date currentlogindate;//本次登陆时间
  private long datastatus;


  @Override
  public boolean isNull() {
    return StringUtils.isEmpty(username)||StringUtils.isEmpty(password);
  }

  public long getUserid() {
    return userid;
  }

  public void setUserid(long userid) {
    this.userid = userid;
  }


  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }


  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }


  public String getPasswordsalt() {
    return passwordsalt;
  }

  public void setPasswordsalt(String passwordsalt) {
    this.passwordsalt = passwordsalt;
  }



  public long getDatastatus() {
    return datastatus;
  }

  public void setDatastatus(long datastatus) {
    this.datastatus = datastatus;
  }

  public Date getRegistrydate() {
    return registrydate;
  }

  public void setRegistrydate(Date registrydate) {
    this.registrydate = registrydate;
  }

  public Date getLastlogindate() {
    return lastlogindate;
  }

  public void setLastlogindate(Date lastlogindate) {
    this.lastlogindate = lastlogindate;
  }

  public Date getCurrentlogindate() {
    return currentlogindate;
  }

  public void setCurrentlogindate(Date currentlogindate) {
    this.currentlogindate = currentlogindate;
  }
}
